﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ComponentModel;
using System.ServiceModel.Web;

namespace Chinaer.WCF.Contracts
{
    /// <summary>
    /// 子菜单类别
    /// </summary>
    public partial interface IChinaer
    {
        [OperationContract]
        [Description("添加子菜单类别")]
        [WebInvoke(
             Method = "POST",
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "AddMenuSubCategory"
            )]
        Chinaer.Model.Common.JsonResult AddMenuSubCategory(DTO.MenuSubCategoryDTO menuSubCategoryDTO);

        [OperationContract]
        [Description("删除子菜单类别")]
        [WebInvoke(
             Method = "POST",
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "DeleteMenuSubCategory"
            )]
        Chinaer.Model.Common.JsonResult DeleteMenuSubCategory(DTO.MenuSubCategoryDTO menuSubCategoryDTO);


        [OperationContract]
        [Description("更新子菜单类别")]
        [WebInvoke(
             Method = "POST",
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "UpdateMenuSubCategory"
            )]
        Chinaer.Model.Common.JsonResult UpdateMenuSubCategory(DTO.MenuSubCategoryDTO menuSubCategoryDTO);

        [OperationContract]
        [Description("更新子菜单类别")]
        [WebInvoke(
             Method = "GET",
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "DeleteMenuSubCategoryByID/{menuSubCategoryID}/{apiToken}"
            )]
        Chinaer.Model.Common.JsonResult DeleteMenuSubCategoryByID(string menuSubCategoryID, string apiToken);

        [OperationContract]
        [Description("更新子菜单类别")]
        [WebInvoke(
             Method = "GET",
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "GetMenuSubCategoryByMenuCategoryIDAndDianPuID/{menuCategoryID}/{dianPuID}/{apiToken}"
            )]
        List<DTO.MenuSubCategoryDTO> GetMenuSubCategoryByMenuCategoryIDAndDianPuID(string menuCategoryID, string dianPuID,string apiToken);

    }
}
